import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";

import "element-plus/dist/index.css";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";

const app = createApp(App);
// 全局注册      Object.entries()--->将对象的键值对( 将对象的可枚举属性转换为一个数组 )转化为 ["属性",属性值] 的形式
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app.use(router);

app.mount("#app");

